package com.cw.demo.api.dto;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import com.cw.starter.center.dto.BaseDto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

/**
 * 用户Dto
 *
 * @author chenw
 * @date 2021/7/27
 */
@Getter
@Setter
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class UserDto extends BaseDto implements Serializable {
    private static final long serialVersionUID = 371445542401545822L;
    /** 用户名 */
    @NotNull(message = "用户名不能为空")
    private String userName;
    /** 性别 */
    private String sex;
}
